package game

import (
	v1 "qm_system_server/server/api/v1"
	"qm_system_server/server/middleware"

	"github.com/gin-gonic/gin"
)

type QmSoftRouter struct {
}

func (s *QmSoftRouter) InitQmSoftRouter(Router *gin.RouterGroup) {
	qmSoftRouter := Router.Group("qmSoft").Use(middleware.OperationRecord())
	qmSoftRouterWithoutRecord := Router.Group("qmSoft")
	var qmSoftApi = v1.ApiGroupApp.GameApiGroup.QmSoftApi
	{
		qmSoftRouter.POST("createQmSoft", qmSoftApi.CreateQmSoft)
		qmSoftRouter.DELETE("deleteQmSoft", qmSoftApi.DeleteQmSoft)
		qmSoftRouter.PUT("updateQmSoft", qmSoftApi.UpdateQmSoft)
	}
	{
		qmSoftRouterWithoutRecord.GET("findQmSoft", qmSoftApi.FindQmSoft)
		qmSoftRouterWithoutRecord.GET("getQmSoftList", qmSoftApi.GetQmSoftList)
	}
}
